import tensorflow.compat.v1 as tf


def x_summary_image(name, conv, num, idx=0):
    tf.summary.image(name, tf.expand_dims(tf.transpose(conv[idx], [2, 0, 1]), axis=-1), num)
